import * as ajax from "../../common/ajax";

// 获取选课列表
export const getPage = (index, studentName, courseName, status) =>
  ajax.get("/teacher/student-course/page?index=" + index+"&studentName="+
    studentName+"&studentName="+courseName+"status="+status
  );

// 审核选课
export const audit = (studentCourseId, approved) => 
  ajax.post("/teacher/student-course/audit?id=" + studentCourseId + 
    "&type=" + (approved ? 1 : 2) 
  ); 